﻿package mortal.component.skin.button
{
    import com.mui.core.*;
    import com.mui.skins.*;
    import fl.core.*;
    import flash.geom.*;
    import flash.text.*;
    import mortal.common.*;
    import mortal.game.resource.*;

    public class TabarNewStyle extends SkinStyle
    {
        private var _scaleRect:Rectangle;
        private var _textFormat:TextFormat;
        private var _textFormatDisable:TextFormat;

        public function TabarNewStyle()
        {
            this._scaleRect = new Rectangle(19, 12, 1, 1);
            this._textFormat = new GTextFormat(null, 12, 10788497);
            this._textFormatDisable = new GTextFormat(null, 12, 16313037);
            return;
        }// end function

        override public function setStyle(param1:UIComponent) : void
        {
            param1.setStyle("upSkin", GlobalClass.getScaleBitmap(ImagesConst.TabButton2_upSkin, this._scaleRect));
            param1.setStyle("downSkin", GlobalClass.getScaleBitmap(ImagesConst.TabButton2_overSkin, this._scaleRect));
            param1.setStyle("overSkin", GlobalClass.getScaleBitmap(ImagesConst.TabButton2_overSkin, this._scaleRect));
            param1.setStyle("disabledSkin", GlobalClass.getScaleBitmap(ImagesConst.TabButton2_dowmSkin, this._scaleRect));
            param1.setStyle("textFormat", this._textFormat);
            param1.setStyle("disabledTextFormat", this._textFormatDisable);
            return;
        }// end function

    }
}
